	echo off

:start
	REM enter a folder (unless its the compiled_test folder), call open function
	for /D %%i in (*.*) do if %%i NEQ compiled_tests (call :open %%i)

	cd compiled_tests

	REM delete all files
	del /Q *.*

	cd..
REM	del Brute4Qt.exe
	echo SUCCESS
REM 	pause
goto :EOF


:open
	cd %1
	
	REM Clean-up 
	rmdir /S /Q release

	rmdir /S /Q debug
	
	del /A ".brute.xml"
	del Makefile
	del Makefile.Debug
	del Makefile.Release
	del *.pro.user
	cd..
goto :EOF
